<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<script type="text/javascript" src="jquery-1.7.js"></script>

<script type="text/javascript">
function watchtheurl()
{	
	
	$.ajax(
		{
			url: "http://www.google.com.hk/",
			async: false,
			dataType: "html",
			complete : function(jqXHR, textStatus)
			{
				//$("#debugShow").html(textStatus);
			},
			error : function(jqXHR, textStatus, errorThrown){
				$("#debugShow").html(textStatus);
			},
			success: function(data, textStatus, jqXHR)
			{
				$("#debugShow").html(jqXHR.responseText);
				$(jqXHR.responseText).
			}
		}
	);

	
	//window.setTimeout(watchtheurl($url),10);
}



function trydoExchange(id, buyType)
{
	jQuery.post("http://www.yihaodian.com/product/ajaxAddPointProduct.do",{productID:id,buyType:buyType},function(result){
				$(result).find("#addProductFailed");
    			window.setTimeout( function(){ trydoExchange(id,buyType);},3 );
    		
    	});
}

</script>



<body>
<div id = 'debugShow' >
</div>

<input name="clickbtn" type="button" onclick="watchtheurl()" />
</body>
</html>
